package com.crpc.core.discovery;

import com.crpc.core.ServiceConfig;

import java.net.InetSocketAddress;
import java.util.List;

/**
 * @author CLOUD
 * @version 1.0
 * @description: 注册中心
 * @date 2023/9/8 19:14
 */
public interface Registry {
    public void register(ServiceConfig<?> serviceConfig);

    //从注册中心拉取一个可用的服务 ip
    List<InetSocketAddress> lookup(String name);

}
